From d421338ccc43c606326be459664d6881c3deec46 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 25 Feb 2010 11:54:19 +0000 Subject: [PATCH] VT-d: Fix ia64 build for 20974:3b475d9ed6b5 This patch fixes the following error on ia64: iommu.c: In function 'init_vtd_hw': iommu.c:1831: error: 'nr_ioapics' undeclared (first use in this function) Signed-off-by: KUWAMURA Shin'ya --- xen/drivers/passthrough/vtd/iommu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/drivers/passthrough/vtd/iommu.c b/xen/drivers/passthrough/vtd/iommu.c index fd77b014ba..460e7032cc 100644 --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -38,6 +38,10 @@ #include "extern.h" #include "vtd.h" +#ifdef __ia64__ +#define nr_ioapics iosapic_get_nr_iosapics() +#endif + int nr_iommus; static bool_t rwbf_quirk; -- 2.30.2